<%--@elvariable id="pipeCalculate" type="com.infitecs.eyas.mill.model.PipeCalculate"--%>
<%--
  Created by IntelliJ IDEA.
  User: Demon-pro
  Date: 2015/6/26
  Time: 9:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="../includes/head.jsp" %>
    <title>${menu.menuName}</title>
</head>
<body class="page-header-fixed page-quick-sidebar-over-content">
<%@include file="../includes/top.jsp" %>
<div class="page-container">
    <%@include file="../includes/sidebar.jsp" %>
    <div class="page-content-wrapper">
        <div class="page-content">
            <%@include file="../includes/current.jsp" %>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <div class="form-body">
                                <div class="col-md-6 col-md-offset-3">
                                    <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                for="E115">单台磨出口送粉管道数量</label>

                                            <div class="col-md-8">
                                                <input type="text" class="form-control input-inline"
                                                    id="E115" onblur="Pipeline.update('E115')" value="${pipeCalculate.e115Show}"/>
                                                <span class="help-inline">
                                                    根
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                        <div class="form-group">
                                            <label class="control-label col-md-4" style="padding-left: 0"
                                                   for="E116">送粉管道最小内直径</label>

                                            <div class="col-md-8">
                                                <input type="text" class="form-control input-inline"
                                                   readonly    id="E116"  value="${pipeCalculate.e116Show}"/>
                                                <span class="help-inline">
                                                    mm
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                        <div class="form-group">
                                            <label class="control-label col-md-4" style="padding-left: 0"
                                                   readonly  for="E117">送粉管道最大内直径</label>

                                            <div class="col-md-8">
                                                <input type="text" class="form-control input-inline"
                                                     readonly  id="E117"  value="${pipeCalculate.e117Show}"/>
                                                <span class="help-inline">
                                                    mm
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                   for="E118" >煤粉管道外径</label>

                                            <div class="col-md-8">
                                                <input type="text" class="form-control input-inline"
                                                       id="E118" onblur="Pipeline.update('E118')" value="${pipeCalculate.e118Show}"/>
                                                <span class="help-inline">
                                                    mm
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                   for="E119">煤粉管道壁厚</label>

                                            <div class="col-md-8">
                                                <input type="text" class="form-control input-inline"
                                                       id="E119"  value="${pipeCalculate.e119Show}"/>
                                                <span class="help-inline">
                                                    mm
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-20" style="padding-left: 0">
                                        <div class="form-group">
                                            <label class="control-label col-md-4" style="padding-left: 0"
                                                   for="E120">煤粉流速</label>

                                            <div class="col-md-8">
                                                <input type="text" class="form-control input-inline"
                                                       readonly    id="E120"
                                                       value="${pipeCalculate==null?"":pipeCalculate.e120Show}"/>
                                                <span class="help-inline">
                                                    mm
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-body">
                                     <div class="row">
                                         <div class="col-md-5">
                                         </div>
                                         <div class="col-md-7">
                                             <button type="button" class="btn green" id="save"
                                                     onclick="Pipeline.pipelineSave()">确定
                                             </button>
                                             <button type="button" class="btn green" id="nextPage"
                                                     onclick="Pipeline.pipelineNext()">下一页
                                             </button>
                                         </div>
                                         <!--/span-->
                                     </div>
                                     <!--/span-->
                                 </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="hidden" id="caseId" value="${caseId}" name="caseId">
<input type="hidden" id="addFlag" value="${pipeCalculate==null?"add":"edit"}" name="addFlag">
<%@include file="../includes/footer.jsp" %>
<%@include file="../includes/bottomscript.jsp" %>
<script src="<c:url value="/js/mill/Pipeline1.js"/>" type="text/javascript"></script>
<script>
    $(document).ready(function () {
        var caseId = $("#caseId").val();
        var step = '<%=request.getAttribute("step")==null?"":request.getAttribute("step")%>'
        if (caseId == "" || step != "") {
            var obj = getUrlByStep(step)
            toast.error(obj.message);
            setTimeout(function () {
                window.location.href = obj.url;
            }, 1200);
        }
        <%
         String message = (String) request.getAttribute("message");
         if(message!=null&&!"".equals(message)){
         if(message.equals("success")){
         %>
        toast.success("操作成功");
        <%
        }else{
        %>
        toast.error("<%=request.getAttribute("message")%>");
        <%
         }
            }
       %>
    });
</script>
</body>
</html>
